<?php
// 后台用户模块
class CommodityCollocationAction extends CommonAction {

	function _filter(&$map) {
	}

	protected function _search($name = '') {
		//生成查询条件
		$name  = $this->getActionName();
		$model = D($name);
		$map   = array();
		foreach ($model->getDbFields() as $key => $val) {
			if (isset($_REQUEST[$val]) && $_REQUEST[$val] != '') {
				$map[$val] = $_REQUEST[$val];
			}
		}
		return $map;
	}

	public function _before_index(){
		$commodityInfo = D('CommodityInfo');
		$commodityInfo->ini();
		$commodity_list = $commodityInfo->commodity_info();
		$this->assign("commodity_list",$commodity_list);
	}

}
?>